#include "stdafx.h"
#include "BonhommeComponent.h"


s64	BonhommeComponent::m_type = -1;
s64	BonhommeComponent::m_index = -1;

BonhommeComponent::BonhommeComponent() : IComponent("BonhommeComponent", m_type, m_index), m_state(eIdle)
{
}

BonhommeComponent::~BonhommeComponent()
{
}

void BonhommeComponent::UpdateNextDestination()
{
    if (!m_currentPath.empty())
    {
        m_pDestinationRoom = m_currentPath.front();
        m_currentPath.pop();
    }
    else
    {
        m_pDestinationRoom = NULL;
    }
}
